VERSION 5.00
Begin VB.Form FrmIva 
   Caption         =   "[IVA] Impuesto de venta al consumidor"
   ClientHeight    =   8175
   ClientLeft      =   60
   ClientTop       =   420
   ClientWidth     =   10395
   LinkTopic       =   "Form1"
   ScaleHeight     =   11595
   ScaleWidth      =   19080
   StartUpPosition =   2  'CenterScreen
   WindowState     =   2  'Maximized
   Begin VB.CommandButton cmdSalir 
      Caption         =   "&Salir"
      BeginProperty Font 
         Name            =   "Eras Bold ITC"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   10080
      TabIndex        =   3
      Top             =   5280
      Width           =   1335
   End
   Begin VB.CommandButton cmdAceptar 
      Caption         =   "Aceptar"
      BeginProperty Font 
         Name            =   "Eras Bold ITC"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   8520
      TabIndex        =   0
      Top             =   5280
      Width           =   1335
   End
   Begin VB.TextBox txtIva 
      Height          =   345
      Left            =   5700
      TabIndex        =   2
      Top             =   5400
      Width           =   1815
   End
   Begin VB.Label SkinLabel1 
      Caption         =   "IVA"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Left            =   4980
      TabIndex        =   1
      Top             =   5400
      Width           =   855
   End
End
Attribute VB_Name = "FrmIva"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdAceptar_Click()
    Dim conexion As New ADODB.Connection
    Database.conect conexion
    conexion.Execute "UPDATE iva SET iva=" & Val(txtIva.Text)
    Database.closeDb conexion
    MsgBox "Actualizado"
    CargarIVA
End Sub
Private Sub cmdSalir_Click()
    Unload Me
End Sub
Private Sub Form_Load()
    Dim t  As ADODB.Recordset
    Dim conexion As New ADODB.Connection
    Database.conect conexion
    t.Open "IVA", conexion
    txtIva.Text = t(0).value
    Database.closeDb conexion
    
End Sub
